<template>
  <div class="box clearfix" ref="containerRef">
    <div class="main">
      <div class="jfmain clearfix">
        <header>
          <a class="fl logo" href="https://wireai.com/" target="_blank">
            <img :src="`${imgurl}logo_aireai.png`" />
          </a>
          <nav>
            <span class="title" @click="toUrl('/')">
              <i>WIRE AI</i>
            </span>
            <span class="title " @click="toUrl('/shop')">
              <i>积分商城</i>
            </span>
            <span class="title" @click="toUrl('/member')">
              <i>个人中心</i>
            </span>
            <span class="title active" @click="toUrl('/ranklist')">
              <i>积分助力榜</i>
            </span>
          </nav>
        </header>
        <div class="jfInfo clearfix">
          <img :src="`${imgurl}rank_banner.png`" class="rankbanner" />
          <div class="ranktop" v-if="toplist.length > 0">
            <div class="rank01">
              <div class="rank_headimg">
                <div class="hgbz">
                  <img :src="`${imgurl}wangguan02.png`" alt="" />
                </div>
             
                <div class="hgbzimg" v-if="type==2">
                  <img :src="baseurl + toplist[1].headimg" alt="" v-if="toplist[1].headimg"/>
					      	<img :src="`${imgurl}pic.jpg`" v-else />

                </div>
                <div class="hgbzimg" v-if="type==1">
                  <img :src="baseurl + toplist[1].headimg" alt="" v-if="toplist[1].headimg"/>
					      	<img :src="`${imgshop}logo_1.png`" v-else />

                </div>
                <div class="rank_sex" v-if="type==2">
                  <img
                    :src="`${imgshop}girl.png`"
                    v-if="toplist[1].sex == '女'"
                  />
                  <img :src="`${imgshop}sex.png`" v-else />
                </div>
              </div>
              <div class="rank_text">
                <p>{{ toplist[1].nickname }}</p>
                <span></span>
                <div class="jfnumber">{{ toplist[1].integraltotal }}</div>
                <div class="jfspan">积分</div>
              </div>
            </div>

            <div class="rank02">
              <div class="rank02con">
                <div class="rank_headimg">
                  <div class="hgbz">
                    <img :src="`${imgurl}wangguan01.png`" alt="" />
                  </div>
                  <div class="hgbzimg" v-if="type==2">
                    <img :src="baseurl + toplist[0].headimg" alt="" v-if="toplist[0].headimg"/>
					        	<img :src="`${imgurl}pic.jpg`" v-else />
                  </div>
                  <div class="hgbzimg" v-if="type==1">
                    <img :src="baseurl + toplist[0].headimg" alt="" v-if="toplist[0].headimg"/>
					        	<img :src="`${imgshop}logo_0.png`" v-else />
                  </div>
                  <div class="rank_sex" v-if="type==2">
                    <img
                      :src="`${imgshop}girl.png`"
                      v-if="toplist[0].sex == '女'"
                    />
                    <img :src="`${imgshop}sex.png`" v-else />
                  </div>
                </div>
                <div class="rank_text">
                  <p>{{ toplist[0].nickname }}</p>
                  <span></span>
                  <div class="jfnumber">{{ toplist[0].integraltotal }}</div>
                  <div class="jfspan">积分</div>
                </div>
              </div>
            </div>

            <div class="rank01 rank03">
              <div class="rank_headimg">
                <div class="hgbz">
                  <img :src="`${imgurl}wangguan03.png`" alt="" />
                </div>
                <div class="hgbzimg" v-if="type==2">
                  <img :src="baseurl + toplist[2].headimg" alt="" v-if="toplist[2].headimg"/>
					        	<img :src="`${imgurl}pic.jpg`" v-else />
                </div>
                <div class="hgbzimg" v-if="type==1">
                  <img :src="baseurl + toplist[2].headimg" alt="" v-if="toplist[2].headimg"/>
					        	<img :src="`${imgshop}logo_2.png`" v-else />
                </div>
                <div class="rank_sex" v-if="type==2">
                  <img
                    :src="`${imgshop}girl.png`"
                    v-if="toplist[2].sex == '女'"
                  />
                  <img :src="`${imgshop}sex.png`" v-else />
                </div>
              </div>
              <div class="rank_text">
                <p>{{ toplist[2].nickname }}</p>
                <span></span>
                <div class="jfnumber">{{ toplist[2].integraltotal }}</div>
                <div class="jfspan">积分</div>
              </div>
            </div>
          </div>
        </div>

        <!-- 底部排行榜 -->
        <div class="ranklist">
          <div class="ranklisttop ranklisttopcheck1" v-if="type == 1">
            <p class="titlep">
              <img :src="`${imgshop}left_p.png`" alt="" />
              企业排行榜
              <img :src="`${imgshop}right_p.png`" alt="" />
            </p>
            <p @click="changetype(2)">个人助力榜</p>
          </div>
          <div class="ranklisttop ranklisttopcheck2" v-else>
            <p @click="changetype(1)">企业排行榜</p>
            <p class="titlep">
              <img :src="`${imgshop}left_p.png`" alt="" />个人助力榜
              <img :src="`${imgshop}right_p.png`" alt="" />
            </p>
          </div>

          <div class="ranklistcon" v-if="reslist.length > 0">
            <div class="ranktr">
              <p>排名</p>
              <p :class="type==2?'':'nowidth'">{{ type == 2 ? "用户名" : "" }}</p>
              <p :class="type==1?'':'nowidth'">{{ type == 1 ? "公司名称" : "" }}</p>
              <p>积分</p>
            </div>
            <div
              class="ranktr ranktd"
              v-for="(item, index) in reslist"
              :key="index"
            >
              <p>
                <span v-if="index == 0">
                  <img :src="`${imgshop}p_01.png`" alt="" />
                </span>
                <span v-else-if="index == 1">
                  <img :src="`${imgshop}p_02.png`" alt="" />
                </span>
                <span v-else-if="index == 2">
                  <img :src="`${imgshop}p_03.png`" alt="" />
                </span>
                <span v-else>
                  {{ index + 1 }}
                </span>
              </p>
              <p :class="type==2?'':'nowidth'">
                <span v-if="item.headimg">
                  <img
                    :src="baseurl + item.headimg"
                    alt=""
                    v-if="index == 0"
                    class="bor"
                  />
                  <img
                    :src="baseurl + item.headimg"
                    alt=""
                    v-else-if="index == 1"
                    class="bor1"
                  />
                  <img
                    :src="baseurl + item.headimg"
                    alt=""
                    v-else-if="index == 2"
                    class="bor2"
                  /><img :src="baseurl + item.headimg" alt="" v-else />
                </span>
                <span v-else>
                  <img :src="`${imgurl}pic.jpg`" />
                </span>
                <span>
                  {{ item.nickname }}
                </span>
              </p>
              <p :class="type==1?'':'nowidth'">
                {{ type == 1 ? item.companyname : "" }}
              </p>
              <p>
                <span v-if="index == 0" class="col">{{
                  item.integraltotal
                }}</span>
                <span v-else-if="index == 1" class="col1">{{
                  item.integraltotal
                }}</span>
                <span v-else-if="index == 2" class="col2">{{
                  item.integraltotal
                }}</span>
                <span v-else>{{ item.integraltotal?item.integraltotal:0 }}</span>
              </p>
            </div>
          </div>
        </div>
        <!-- 底部排行榜 -->
      </div>
    </div>
  </div>
</template>
    
    <script setup lang='ts'>
const type = ref<number>(1);
import { useSystemStore } from "@/store/modules/system";
const imgurl = import.meta.env.VITE_APP_TITLE + "/assets/images/";
const imgshop = import.meta.env.VITE_APP_TITLE + "/assets/shop/";
import { useRouter } from "vue-router";

const router = useRouter();
const baseurl = inject("$baseurl", null as any);
const isMobile = ref<boolean>(false);
const api = inject("$base", null as any);
type.value = Number(router.currentRoute.value.query.type);

const classId = ref<number>();
const base = useSystemStore();
const containerRef = ref(null);
function changetype(id: number) {
  type.value = id;
  getjfranklist(id);
}
function toUrl(url) {
  router.push({
    path: url,
  });
}

const toplist = ref<any>([]);
const reslist = ref<any>([]);
function getjfranklist(number) {
  api.ranklist({ type: number }).then((res) => {
    console.log(res);
    toplist.value = res.data.top;
    reslist.value = res.data.reslist;
  });
}
onMounted(() => {
  document.title = "WIRE AI积分商城";
  if (base.productClassid) {
    classId.value = base.productClassid;
  }

  const width = window.innerWidth;
  if (width <= 768) {
    isMobile.value = true;
  }
  window.addEventListener("resize", function () {
    const width = window.innerWidth;
    if (width <= 768) {
      isMobile.value = true;
    } else {
      isMobile.value = false;
    }
  });
  if(!type.value){
    type.value = 1;
  }
  getjfranklist(type.value);
});
</script>
    <style lang="scss" scoped>
.ranklist {
  width: 1200px;
  height: auto;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto;
  margin-top: 30px;
  .ranklisttop {
    width: 1200px;
    height: 83px;
    background: url(../../assets/shop/select_com.png) no-repeat center top;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    p {
      padding: 0;
      margin: 0;
      width: 50%;
      text-align: center;
      cursor: pointer;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      color: #3c4477;
      padding-top: 15px;
    }
    .titlep {
      font-size: 18px;
      font-weight: bold;
      color: #2379f7;
    }
  }
  .ranklisttopcheck1 {
    background: url(../../assets/shop/select_com.png) no-repeat center top;
  }
  .ranklisttopcheck2 {
    background: url(../../assets/shop/select_peo.png) no-repeat center top;
  }
  .ranklistcon {
    height: auto;
    padding: 0 20px;
    background: #fff;
    margin-top: -35px;
    .ranktr {
      display: flex;
      padding-top: 30px;
      height: auto;
      overflow: hidden;
      p:first-child {
        width: 180px;
        text-align: center;
      }
      p:nth-child(2) {
        width: 666px;
        text-align: left;
        margin-left: 64px;
      }
      p:nth-child(3) {
        width: 660px;
        text-align: left;
        margin-left: 42px;
      }
      p:nth-child(4) {
        width: 154px;
        text-align: right;
      }
    }
    .ranktd {
      height: 100px;
      border-top: 1px solid #edf0f6;
      padding: 0;
      margin: 0;
      p {
        display: flex;
        align-items: center;
      }
      p:first-child {
        justify-content: center;

        span {
          font-family: "DIN";
          font-weight: bold;
          font-size: 20px;
          color: #666666;
        }
      }
      p:nth-child(2) {
        font-size: 18px;
        color: #333333;
        img {
          width: 70px;
          height: 70px;
          border-radius: 50%;
          margin-right: 20px;
        }
        .bor {
          border: 2px solid #b7b8ff;
        }
        .bor1 {
          border: 2px solid #91bcfb;
        }
        .bor2 {
          border: 2px solid #8ee8fb;
        }
      }
      p:nth-child(3) {
        font-size: 18px;
        color: #333333;
      }
      p:nth-child(4) {
        width: 154px;
        text-align: right;
        justify-content: flex-end;
        font-size: 26px;
        font-family: "DIN";
        font-weight: bold;
        color: #000;
        .col {
          color: #6f72ff;
        }
        .col1 {
          color: #2379f7;
        }
        .col2 {
          color: #1dd2f8;
        }
      }
    }
  }
}
.rank02con {
  width: 167px;
  min-height: 281px;
  position: relative;
  margin: 0 auto;
  margin-top: 23px;
}
.ranktop {
  width: 100%;
  padding-top: 281px;
  display: flex;
  justify-content: center;
  .rank01 {
    width: 167px;
    min-height: 281px;
    background: url(../../assets/shop/top2.png) no-repeat center top;
    position: relative;
    margin-top: 36px;
    .hgbz {
      width: 30px;
      height: 29px;
      position: absolute;
      left: 50%;
      margin-left: -10px;
      top: -15px;
      z-index: 2;
    }
    .hgbzimg {
      width: 96px;
      height: 96px;
      overflow: hidden;
      border-radius: 50%;
      position: absolute;
      left: 50%;
      margin-left: -48px;
      top: 8px;
      img {
        width: 100%;
      }
    }
    .rank_sex {
      width: 18px;
      height: 19px;
      position: absolute;
      top: 88px;
      left: 80px;
    }
    .rank_text {
      width: 100%;
      height: auto;
      position: absolute;
      top: 181px;
      text-align: center;
      p {
        font-size: 18px;
        font-weight: bold;
        padding: 5px 0;
        margin: 0;
      }
      span {
        display: block;
        width: 24px;
        height: 2px;
        background: #000000;
        margin: 0 auto;
      }
      .jfnumber {
        color: #2379f7;
        font-family: "DIN";
        font-size: 26px;
        font-weight: bold;
        line-height: 32px;
      }
      .jfspan {
        font-size: 15px;
        color: #666666;
      }
    }
  }
  .rank02 {
    width: 262px;
    min-height: 356px;
    background: url(../../assets/shop/top1.png) no-repeat center top;

    position: relative;
    margin: 0 5px;
    margin-top: -23px;
    .hgbz {
      width: 30px;
      height: 29px;
      position: absolute;
      left: 50%;
      margin-left: -10px;
      top: -15px;
      z-index: 2;
    }
    .hgbzimg {
      width: 96px;
      height: 96px;
      overflow: hidden;
      border-radius: 50%;
      position: absolute;
      left: 50%;
      margin-left: -48px;
      top: 8px;
      img {
        width: 100%;
      }
    }
    .rank_sex {
      width: 18px;
      height: 19px;
      position: absolute;
      top: 88px;
      left: 80px;
    }
    .rank_text {
      width: 167px;
      height: auto;
      position: absolute;
      top: 187px;
      text-align: center;
      p {
        font-size: 18px;
        font-weight: bold;
        padding: 5px 0;
        margin: 0;
        padding-top: 35px;
      }
      span {
        display: block;
        width: 24px;
        height: 2px;
        background: #000000;
        margin: 0 auto;
      }
      .jfnumber {
        color: #6f72ff;
        font-family: "DIN";
        font-size: 26px;
        font-weight: bold;
        line-height: 32px;
      }
      .jfspan {
        font-size: 15px;
        color: #666666;
      }
    }
  }
  .rank03 {
    background: url(../../assets/shop/top3.png) no-repeat center top;
    .rank_text {
      .jfnumber {
        color: #1dd2f8;
      }
    }
  }
}

.box {
  width: 100%;
  height: auto;
  min-height: 100vh;
  background: url(../../assets/images/rank_bg.jpg) no-repeat top center #f6f9fd;
  .main {
    width: 100%;
    &.disable {
      overflow: hidden;
    }
  }
}
.jfmain {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  color: #333333;
}
header {
  width: 100%;
  padding: 0 60px;
  height: 75px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  .logo {
    cursor: pointer;
    display: inline-block;
    height: 25px;
  }
  nav {
    padding: 0 15px;
    float: left;
    height: 100%;
  }
  .title {
    font-size: 16px;
    padding: 0 15px;
    height: 100%;
    float: left;
    cursor: pointer;
    position: relative;
    i {
      font-style: normal;
      display: inline-block;
      height: 100%;
      position: relative;
      font-family: "siyuanR";
      color: #666666;
      height: 100%;
      transition: all 0.5s;
      transform-origin: center;
      align-items: center;
      justify-content: center;
      display: flex;
      &::after {
        position: absolute;
        bottom: 8px;
        content: "";
        left: 50%;
        width: 0;
        height: 4px;
        background-image: linear-gradient(to right, #2379ff, #9cfacd);
        border-radius: 4px;
        transition: all 0.5s;
      }
    }
    &.active {
      i {
        font-family: "siyuanM";
        color: #333333;
        &:after {
          width: 100%;
          left: 0;
        }
      }
    }
    &:hover {
      i {
        color: #2379f7;
      }
    }
  }
}
.jfInfo {
  width: 100%;
  position: relative;
  .rankbanner {
    position: absolute;
    width: 855px;
  }
  .tit-1 {
    font-size: 20px;
    font-family: "siyuanM";
    line-height: 45px;
    position: relative;
    height: 45px;
    display: inline-block;
    i {
      z-index: 10;
      font-style: normal;
      background: linear-gradient(90deg, #2379ff, #0ac1ba);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      font-size: 20px;
      margin-left: 5px;
    }
    &::after {
      position: absolute;
      left: 0;
      bottom: 0;
      content: "";
      width: 100%;
      height: 1px;
      background: linear-gradient(to right, #cad2df, #b0c8ef, #b0c8ef);
    }
    &::before {
      position: absolute;
      left: 0;
      bottom: -3px;
      content: "";
      width: 38px;
      height: 7px;
      background: #8d9299;
      z-index: 10;
    }
  }
}
.userBox {
  width: 100%;
  position: relative;
  padding: 105px 0 0;
  color: #fff;
  &::after {
    background: url(../../assets/images/bg7.png) no-repeat;
    padding-bottom: 100%;
    width: 134px;
    height: 63px;
    position: absolute;
    left: -37px;
    top: 25px;
    content: "";
  }
}
.userInfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "siyuanN";
  background: url(../../assets/shop/userbg.png) no-repeat;
  background-size: 100%;
  width: 743px;
  height: 120px;
  padding: 0 25px 0 30px;
  margin: 0 auto;
  position: relative;
  .btnEdit {
    background: url(../../assets/shop/btnEdit.png) no-repeat;
    background-size: 100%;
    width: 115px;
    height: 35px;
    color: #000000;
    font-size: 15px;
    text-align: center;
    line-height: 35px;
    position: absolute;
    right: 30px;
    bottom: -17px;
    cursor: pointer;
  }
  .pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px;
    margin: 0 0 0 10px;
    position: relative;
    cursor: pointer;
    .sex {
      background: url(../../assets/shop/sex.png) no-repeat;
      background-size: 100%;
      width: 18px;
      height: 19px;
      position: absolute;
      right: 0;
      bottom: 5px;
      z-index: 10;
      &.girl {
        background: url(../../assets/shop/girl.png) no-repeat;
        background-size: 100%;
      }
    }
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: solid 1px #fff;
    }
  }
  .cont {
    color: #fff;
    padding-left: 25px;
    position: relative;
    padding-top: 10px;
    text-align: left;
    .icon {
      background: url(../../assets/shop/diamond.png) no-repeat;
      background-size: 100%;
      width: 18px;
      height: 18px;
      position: absolute;
      left: 0;
      font-size: 8px;
      text-align: center;
      line-height: 14px;
      top: 14px;
      padding-right: 2px;
    }
    .name {
      font-size: 18px;
      line-height: 26px;
      font-family: "siyuanM";
      cursor: pointer;
    }
    .tell {
      font-size: 15px;
      line-height: 22px;
      cursor: pointer;
    }
    .title {
      font-size: 15px;
      line-height: 28px;
    }
  }
  .fraction {
    color: #fff;
    .tit-1 {
      white-space: nowrap;
      i {
        font-style: normal;
        font-size: 36px;
        font-family: "DIN";
        font-weight: 600;
        margin-right: 3px;
      }
      font-size: 15px;
    }
  }
}
.classBox {
  width: 100%;
  height: 60px;
  position: relative;
  display: flex;
  margin-top: 50px;
  .classTit {
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: #333333;
    .titCon {
      display: inline-block;
      padding: 0 30px;
      cursor: pointer;
      font-family: "siyuanM";
      position: relative;
      height: 60px;
      line-height: 60px;
      &::before,
      &::after {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        content: "";
        width: 20px;
        height: 50px;
      }
      &::before {
        background: url(../../assets/shop/titbg01.png) no-repeat center center;
        background-size: 100% auto;
        left: 0;
      }
      &::after {
        background: url(../../assets/shop/titbg02.png) no-repeat center center;
        background-size: 100% auto;
        right: 0;
      }
    }
    i {
      display: inline-block;
      height: 100%;
      position: relative;
      font-style: normal;
      font-family: "siyuanM";
    }
    &.active {
      font-size: 18px;
      font-family: "siyuanM";
      color: #2379f7;
      position: relative;
      i {
        &:after {
          position: absolute;
          bottom: -1px;
          width: 100%;
          height: 2px;
          background: #448efb;
          content: "";
          left: 0;
        }
      }
    }
  }
  // &:before{
  //     position:absolute;
  //     bottom:0;
  //     width:100%;
  //     height:1px;
  //     background:#dbe2ee;
  //     content:'';
  // }
}
.list {
  width: calc(100% + 24px);
  margin-left: -12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-family: "siyuanN";
  min-height: 200px;
  .shopItem {
    background: #fff;
    width: calc(100% - 24px);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    // padding:2px;
    &:before {
      position: absolute;
      left: 0;
      border-radius: 8px;
      top: 0;
      border: solid 2px #2379f7;
      content: "";
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: all 0.3s;
      z-index: 10;
    }
    &:hover {
      box-shadow: 5px 8px 8px rgba(25, 121, 247, 0.2);
      &:before {
        opacity: 1;
      }
      .btnMore {
        background: #2379f7;
        color: #fff;
        box-shadow: 3px 5px 5px rgba(25, 121, 247, 0.2);
      }
    }
    .imgT {
      width: 100%;
      height: 210px;
      overflow: hidden;
      margin-bottom: 20px;
      img {
        width: 100%;
        height: 100%;
        // width:auto;
        // height:auto;
        object-fit: cover;
      }
    }
    .title {
      font-size: 15px;
      height: 30px;
      padding: 0 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      line-height: 30px;
      text-align: center;
      position: relative;
      z-index: 99;
    }
    .price {
      color: #2379f7;
      font-size: 26px;
      font-family: "DIN";
      height: 40px;
      i {
        background: url(../../assets/shop/exchange.png) no-repeat left 10px;
        background-size: 27px 27px;
        padding-left: 26px;
        font-style: normal;
      }
      position: relative;
      z-index: 99;
    }
    .btnMore {
      border: solid 1px #2379f7;
      width: 115px;
      height: 35px;
      border-radius: 20px;
      margin: 10px auto 25px;
      color: #2379f7;
      transition: all 0.3s;
      position: relative;
      z-index: 99;
    }
  }
}
.nodata {
  background: url(../../assets/images/nodata2.png) no-repeat center center;
  background-size: 480px 367px;
  width: 100%;
  min-height: 550px;
}
#gotop_xxx {
  position: fixed;
  right: calc((100% - 1200px) / 2 - 55px);
  width: 45px;
  top: 350px;
  z-index: 999999;
}
#gotop_xxx .topList {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: last baseline;
  border: solid 1px #c5d7f2;
  box-shadow: 1px 3px 8px rgba(194, 209, 230, 0.38);
  border-radius: 20px;
  padding: 0 8px;
  height: 93px;
  background: #fff;
}
#gotop_xxx .topList .play {
  background: url(../../assets/shop/play.png) no-repeat;
  background-size: 100%;
  width: 23px;
  height: 24px;
  display: block;
}
#gotop_xxx .topList .btntop {
  background: url(http://img.wireai.com/static/images/icon06.png) no-repeat;
  background-size: 100%;
  width: 23px;
  height: 21px;
  display: block;
}
#gotop_xxx .topBtn:hover .btntop {
  background: url(http://img.wireai.com/static/images/icon05.png) no-repeat;
  background-size: 100%;
}
#gotop_xxx .topList li {
  width: 29px;
  height: 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 20px;
  float: right;
  position: relative;
  cursor: pointer;
}
#gotop_xxx .topBtn {
  border-top: solid 2px #e0eaf8;
}
.videoBox {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  .bg {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
  }
  .close {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    background: url(../../assets/shop/close.png) no-repeat center center;
    background-size: 100%;
    width: 30px;
    height: 31px;
    cursor: pointer;
  }
  .video {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    width: 60%;
    z-index: 99;
  }
}
@media (max-width: 768px) {
  .box {
    background-size: auto 750px;
    background-position: top left;
  }
  .jfInfo {
    .rankbanner {
      width: 100%;
      margin-top: -30px;
    }
    .ranktop {
      padding-top: 120px;
      transform: scale(0.95);
    }
  }
  .ranktop {
    .rank01 {
      .rank_sex {
        left: 75px;
      }
    }
    .rank02 {
      .rank_sex {
        left: 75px;
      }
    }
  }
  .ranklist {
    width: 100%;
    .ranklisttop {
      width: 100%;
    }
    .ranklistcon {
      .ranktr {
        p:nth-child(2) {
          margin-left: 0;
        }
      }
      .ranktd {
        p {
          font-size: 14px;
        }
        p:first-child {
          img {
            width: 100%;
          }
        }
        p:nth-child(2) {
          img {
            width: 0;
          }
          .bor {
            border: none;
          }
          .bor2 {
            border: none;
          }
          .bor1 {
            border: none;
          }
        }
        p:nth-child(3) {
          margin-left: 20px;
        }
      }
    }
  }

  .list {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    .shopItem {
      width: calc(100% - 20px);
      margin: 10px 10px;
      .imgT {
        height: 175px;
        margin-bottom: 10px;
      }
    }
  }

  .userBox {
    &::after {
      left: 0;
      top: 25px;
    }
  }
  .userInfo {
    width: 100%;
    background-size: auto 100%;
    padding: 0 20px;
    height: 180px;
    display: block;
    position: relative;
    border-radius: 10px;
    .info {
      width: 100%;
      padding-top: 10px;
      .cont {
        width: 100%;
      }
    }
    .cont {
      text-align: left;
    }
    .score {
      white-space: nowrap;
      position: absolute;
      right: 20px;
      color: #fff;
      font-size: 15px;
      top: 50%;
      transform: translateY(-50%);
      i {
        font-style: normal;
        font-size: 36px;
        font-family: "DIN";
        font-weight: 600;
      }
    }
  }
  .classBox {
    margin-top: 40px;
  }
  header {
    padding: 0 0 0 20px;
    nav {
      padding: 0 10px;
    }
    .title {
      padding: 0 10px;
      font-size: 14px;
    }
  }
  #gotop_xxx {
    right: 10px;
    top: 220px;
  }
  #gotop_xxx .topList {
    &.disable {
      opacity: 0.5;
    }
  }
  .videoBox {
    .video {
      width: 80%;
    }
  }
}

::v-deep .el-loading-mask {
  background: none !important;
}
::v-deep .userBox .el-loading-spinner .path {
  stroke: #fafafa;
}
::v-deep .userBox .el-loading-spinner .el-loading-text {
  color: #fafafa;
}
::v-deep .list .el-loading-spinner .path {
  stroke: #999;
}
::v-deep .list .el-loading-spinner .el-loading-text {
  color: #666;
}
::v-deep .el-image__placeholder {
  background: url(../../assets/shop/loading.gif) no-repeat 50% 50%;
  background-size: 20%;
  width: 100%;
  height: 100%;
}
.rank_headimg {
  width: 100px;
  height: 100%;
  position: relative;
  margin: 0 auto;
}
.nowidth{
  width: 0% !important;
  overflow: hidden;
}
</style>